package com.qysoft.modules;

import com.jfinal.config.Routes;
import com.jfinal.core.JFinal;
import com.qysoft.modules.common.action.CommonAction;
import com.qysoft.modules.common.action.MainAction;
import com.qysoft.modules.genTable.action.GenSchemeAction;
import com.qysoft.modules.genTable.action.GenTableAction;
import com.qysoft.modules.xxwh.action.JGGLAction;
import com.qysoft.modules.xxwh.action.JSGLAction;
import com.qysoft.modules.xxwh.action.RYGLAction;
import com.qysoft.modules.xxwh.action.ZYGLAction;
import com.qysoft.rapid.consts.RapidConsts;
import com.qysoft.rapid.core.RapidConifg;

public class InitConfig extends RapidConifg {

	@Override
	public void configAction(Routes me) {
		me.add("/", MainAction.class);
		me.add("/common", CommonAction.class);
		me.add("/xtwh/jggl",JGGLAction.class,"xtwh");
		me.add("/xtwh/rygl",RYGLAction.class,"xtwh");
		me.add("/xtwh/zygl",ZYGLAction.class,"xtwh");
		me.add("/xtwh/jsgl",JSGLAction.class,"xtwh");
		me.add("/genTable/genTable",GenTableAction.class,"genTable");
		me.add("/genTable/genScheme",GenSchemeAction.class,"genTable");
	}

	public int configDbTool() {
		return RapidConsts.DB_TOOL_MYBATIS;
	}

	@Override
	public int configDbType() {
		return RapidConsts.DB_TYPE_ORACLE;
	} 
		
	@Override
	public String configErrorMSg() {
		return "系统出错，请联系管理员！";
	}

	@Override
	public String configSysName() {
		return "企友研发平台";
	}
	
	public static void main(String[] args) throws Exception {
		JFinal.start("src/main/webapp",8889,"/");
	}
}
